package com.qyc.service;

import com.qyc.dto.AddOrUpdateQuarantineRegistrationDTO;
import com.qyc.pojo.QuarantineRegistration;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qyc.utils.ResponseResult;

import java.util.List;

/**
* @author qinyc
* @description 针对表【quarantine_registration(检疫登记)】的数据库操作Service
* @createDate 2023-06-23 22:58:34
*/
public interface QuarantineRegistrationService extends IService<QuarantineRegistration> {

    /**
     * @Author qinyc
     * @Description  分页多条件查询检疫记录
     * @version: v1.0
     * @Date 23:10 2023/6/23
     **/
    ResponseResult queryPage(String bQualified, String grMechanism, Integer pageNum, Integer pageSize);

    /**
     * @Author qinyc
     * @Description  新增或更新检疫记录
     * @version: v1.0
     * @Date 23:40 2023/6/23
     **/
    ResponseResult saveOrUpdate(AddOrUpdateQuarantineRegistrationDTO addOrUpdateQuarantineRegistrationDTO);

    /**
     * @Author qinyc
     * @Description  根据检疫id删除检疫记录
     * @version: v1.0
     * @Date 10:17 2023/6/24
     **/
    ResponseResult deleteById(Integer grId);

    /**
     * @Author qinyc
     * @Description  批量删除检疫记录
     * @version: v1.0
     * @Date 10:50 2023/6/24
     **/
    ResponseResult deleteByIdAll(List<Integer> grIds);
}
